[#include "/WEB-INF/pages/common/taglibs.ftl"]
<div id="userContent" class="user_content">
	<a href="${action.backurl}" >返回</a>
	<form action="[@c.url value="/manage/User_${act}.action"/]?backurl=${action.backurl}" method="post">
		<input type="hidden" name="user.id" value="${(user.id)!''}" />
		<input type="hidden" name="id" value="${(user.id)!''}" />
		<table>
			<caption>用户的数据内容</caption>
				<tr>
					<th>所属机构：[#--[@fmt.message key="manage.user"/] --]</th>
					<td>
						<select name="user.orgId" class="" [#if act=='update']readonly="readonly"[/#if]>
						[#list orgList as c]
							<option value="${c.id}" [#if (user != null && user.orgId == c.id) || (orgId == c.id)]selected='selected'[/#if] >${c.title}</option>
						[/#list]
						</select>
				</tr>
				<tr>
					<th>用户：[#--[@fmt.message key="manage.user"/] --]</th>
					<td><input type="text" name="user.userName" placeholder="请输入长度大于5位的用户名" value="${(user.userName)!''}"/></td>
				</tr>
				<tr>
					<th>密码：[#--[@fmt.message key="manage.article.type"/]--]</th>
					<td><input type="password" placeholder="请输入5-16位字母和数字组成的密码" name="user.password" value="${(user.password)!''}"/></td>
				</tr>
				<tr>
					<th>再次输入：[#--[@fmt.message key="manage.article.type"/]--]</th>
					<td><input type="password" placeholder="再次输入5-16密码" name="user.password2" value="${(user.password)!''}"/></td>
				</tr>
				<tr>
					<th>姓名：[#--[@fmt.message key="manage.article.type"/]--]</th>
					<td><input type="text" placeholder="您的真实姓名" name="user.realName" value="${(user.realName)!''}"/></td>
				</tr>
				<tr>
					<th>邮箱：[#--[@fmt.message key="manage.article.type"/]--]</th>
					<td><input type="text" placeholder="您的邮箱地址. 格式:xxx@xx.xx" name="user.email" value="${(user.email)!''}"/></td>
				</tr>
				<tr>
					<th>性别：[#--[@fmt.message key="manage.article.type"/]--]</th>
					<td><select name="user.gender">
							<option value="">未知</option>
							<option value="M" [#if (user.gender) ?? && user.gender=='M']selected="selected"[/#if]>男</option>
							<option value="F" [#if (user.gender) ?? && user.gender=='F']selected="selected"[/#if]>女</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>生日</th>
					<td><input type="text" readonly="readonly" placeholder="填写您的生日.格式:yyyy-mm-dd" name="user.birthday" value="[#if (user.birthday)??]${(user.birthday)?string('yyyy-MM-dd')}[/#if]"/></td>
				</tr>
				<tr>
					<th>来自</th>
					<td><input type="text" placeholder="您来自哪里" name="user.comeFrom" value="${(user.comeFrom)!''}"/></td>
				</tr>
				<tr>
					<th>地址</th>
					<td><input type="text" placeholder="您的地址" name="user.address" value="${(user.address)!''}"/></td>
				</tr>
				<tr>
					<th>电话</th>
					<td><input type="text" placeholder="请填写电话号码" name="user.tel" value="${(user.tel)!''}"/></td>
				</tr>
				<tr>
					<th>手机</th>
					<td><input type="text" placeholder="请填写手机号码" name="user.mobile" value="${(user.mobile)!''}"/></td>
				</tr>
				<tr>
					<th>传真</th>
					<td><input type="text" placeholder="传真" name="user.fax" value="${(user.fax)!''}"/></td>
				</tr>
				<tr>
					<th></th>
					<td><input type="submit" value="提交"/></td>
				</tr>
		</table>
	</form> 
</div>